// house_pkg/pages/room/index.ts
Page({
  /**
   * 页面的初始数据
   */
  data: {
    building: '',
    roomNum: [
      101,
      102,
      103,
      201,
      202,
      203,
      301,
      302,
      303,
      401,
      402,
      403,
      501,
      502,
      503,
      601,
      602,
      603,
      701,
      702,
      703,
      801,
      802,
      803,
      901,
      902,
      903,
      1001,
      1002,
      1003,
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad({ building, point }) {
    this.setData({
      building,
      point,
    })
  },

  chooseComplete(ev) {
    wx.navigateTo({
      url: `/house_pkg/pages/form/index?point=${this.data.point}&building=${this.data.building}&room=${ev.mark.room}`,
    })
  },
})
